﻿#region Imports
using System;
#endregion

namespace BulkRenamer.Common.Models
{
    /// <summary>
    /// Extension filters
    /// </summary>
    [Serializable]
    public class ExtnFilters : IdNameValueMember
    {
        /// <summary>
        /// Text for "All (*.*) extn"
        /// </summary>
        public const string sAllExtn = "All";

        #region Constructors
        /// <summary>
        /// Customized constructor
        /// </summary>
        /// <param name="extn">Extension name</param>
        public ExtnFilters(string extn)
        {
            Name = Id = extn;
            Value = true;
            Description = (extn == sAllExtn ? extn : extn.ToUpper()) + " files";
        }
        #endregion
    }
}
